package com.rcloud.server.sealtalk.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @author xiaochaoge
 * @title: ThreadPoolConfig
 * @projectName sealtalk-server
 * @description: TODO
 * @date 2021/11/710:33
 */
@Configuration
public class ThreadPoolConfig {

    @Bean
    public ExecutorService getThreadPool(){
        return Executors.newFixedThreadPool(20);
    }



}
